package com.atguigu.auth.fengin;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author ShiJieLin
 * @Date 2022/4/20 22:34
 * @Version 1.0
 */
@FeignClient("gilimall-third-part")
public interface ThirdPartFeignService {

    /** 调用阿里云的短信服务
     * @param phone 手机号
     * @return 返回验证码
     */
    @GetMapping("/send/sms")
    public R sendMsm(@RequestParam(value = "phone") String phone);

}
